package mapper;

import Message.DTO.DishPageQueryDTO;
import Message.entity.Dish;
import Message.vo.DishVO;
import anno.AutoFill;
import com.github.pagehelper.Page;
import enumeration.OperationType;

import java.util.List;

public interface DishMapper {


    DishVO SelectDish(Long id);


    Page<DishVO> DishSelectList(DishPageQueryDTO dishPageQueryDTO);

    List<DishVO> DishCategoryId(Long categoryId, String name);

    void StatusDish(Integer status, Long id);

    @AutoFill(OperationType.UPDATE)
    void Update(Dish dish);


    @AutoFill(OperationType.INSERT)
    int InsertDish(Dish dish);

    void deleteBatch(List<Long> ids);

    List<Dish> listBy(Dish dish);
}
